package com.ddtech.business.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ddtech.business.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程表
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Course对象", description="课程表")
public class Course extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "主题图片")
    private String themeImage;

    @ApiModelProperty(value = "课程来源，课程标签")
    private String source;

    @ApiModelProperty(value = "课程文件")
    private String courseFile;

    @ApiModelProperty(value = "课件学时(秒)")
    private Integer classHour;

    @ApiModelProperty(value = "课程简介")
    private String courseDesc;

    @ApiModelProperty(value = "章节id")
    private String chapterId;

    @ApiModelProperty(value = "课程分类id")
    private String typeId;

    @ApiModelProperty(value = "讲师id")
    private String teacherId;

    @ApiModelProperty(value = "培训计划id")
    private String planId;

    @ApiModelProperty(value = "课程状态(0:未上线，1:已上线)")
    private Integer status;

    @ApiModelProperty(value = "是否热门课程(0:否，1:是)")
    private Integer isHot;

    @ApiModelProperty(value = "是否推荐课程(0:否，1:是)")
    private Integer isRecommend;


    @TableField(exist = false)
    @ApiModelProperty(value = "课程分类名称")
    private String typeName;

}
